//package edu.aysf.config;
//

//import org.springframework.boot.autoconfigure.http.HttpMessageConverters;
//import org.springframework.cloud.openfeign.support.SpringDecoder;
//import org.springframework.cloud.openfeign.support.SpringEncoder;
//import org.springframework.context.annotation.Bean;
//import org.springframework.context.annotation.Configuration;
//import org.springframework.core.codec.Decoder;
//import org.springframework.http.converter.json.MappingJackson2HttpMessageConverter;
//
//import javax.naming.spi.ObjectFactory;
//import java.beans.Encoder;
//
//@Configuration
//public class FeignConfig3 {
////    @Bean
////    public Feign.Builder feignBuilder() {
////        return Feign.builder().client(new WebClientFeignClient());
////    }
//    @Bean
//    public Encoder feignEncoder() {
//        return new SpringEncoder(feignHttpMessageConverter());
//    }
//
//    @Bean
//    public Decoder feignDecoder() {
//        return new SpringDecoder(feignHttpMessageConverter);
//    }
//
////    @Bean
//    public ObjectFactory<HttpMessageConverters> feignHttpMessageConverter() {
//        return ()->{
//            return new HttpMessageConverters(new MappingJackson2HttpMessageConverter());
//        };
//    }
//}
//
//
